package core.upintf;

public class DM2ClientInfo {
	
	private final String userid;
	
	private final boolean sendtoComm;
	
	
	public boolean isSendtoComm() {
		return sendtoComm;
	}

	public String getUserid() {
		return userid;
	}

	public String getPwd() {
		return pwd;
	}

	public String getType() {
		return type;
	}

	public IPAndPort[] getAddress_list() {
		return address_list;
	}

	private final String pwd;
	
	private final String type;
	
	private final IPAndPort[] address_list;

	public DM2ClientInfo(String userid, String pwd, String type,boolean sendToComm,
			IPAndPort[] address_list) {
		super();
		this.userid = userid;
		this.pwd = pwd;
		this.type = type;
		this.sendtoComm = sendToComm;
		this.address_list = address_list;
	}
	
	public int getServerCount(){
		return address_list.length;
	}
	
	
}
